#include"cube.h"
#include"ground.h"

struct CubeNode
{
	cube *value;
	CubeNode *next;
	CubeNode *previous;
};

struct GroundNode
{
	ground *value;
	GroundNode *next;
	GroundNode *previous;
};

class CubeList
{
private:

public:
	CubeNode *head;
	CubeNode *tail;

	CubeList()	// constructor
	{
		head = NULL;
		tail = NULL;
	}
	~CubeList();

	void appendNode(cube&);
};

class GroundList
{
private:
	
public:
	GroundNode *head;
	GroundNode *tail;

	GroundList()	// constructor
	{
		head = NULL;
		tail = NULL;
	}
	~GroundList();

	void appendNode(ground&);
};

class CollisionManager
{
private:

public:
	CubeList Enemies;
	GroundList Platforms;

	bool testGroundCollision(int);
	bool testObjectCollision(int);

};